package android.test.getintent;

import android.content.Context;
import android.content.Intent;
import android.test.devicetest.KeyCode;
import android.test.devicetest.RGB;
import android.test.devicetest.LedTest;
import android.test.devicetest.Volume;
import android.test.devicetest.VideoPlay;
import android.test.devicetest.SoundRecorder;
import android.test.devicetest.Bluetooth;
import android.test.devicetest.DeviceStatus;
import android.test.devicetest.ResetGPS;

public class GetIntent {

    private static Intent mIntent;

    public static Intent getItemIntent(Context mContext, String currentIntent) {
        mIntent = null;

        if (currentIntent.equals("key")) {
            mIntent = new Intent(mContext.getApplicationContext(), KeyCode.class);
        } else if (currentIntent.equals("rgb")) {
            mIntent = new Intent(mContext.getApplicationContext(), RGB.class);
        } else if (currentIntent.equals("led")) {
            mIntent = new Intent(mContext.getApplicationContext(), LedTest.class);
        } else if (currentIntent.equals("volume")) {
            mIntent = new Intent(mContext.getApplicationContext(), Volume.class);
        } else if (currentIntent.equals("video")) {
            mIntent = new Intent(mContext.getApplicationContext(), VideoPlay.class);
        } else if (currentIntent.equals("recorder")) {
            mIntent = new Intent(mContext.getApplicationContext(), SoundRecorder.class);
        } else if (currentIntent.equals("bluetooth")) {
            mIntent = new Intent(mContext.getApplicationContext(), Bluetooth.class);
        } else if (currentIntent.equals("status")) {
            mIntent = new Intent(mContext.getApplicationContext(), DeviceStatus.class);
        } else if (currentIntent.equals("resetgps")) {
            mIntent = new Intent(mContext.getApplicationContext(), ResetGPS.class);
        }
        return mIntent;
    }
}
